package com.efast.dmom.aps.bean;

import java.util.List;

import com.efast.dmom.aps.bean.base.BaseBean;
import com.efast.dmom.aps.entity.ProductionLineEntity;

/**
 * @author Aaron Liu
 *
 * @date:2020年1月8日
 */
public class ProductionLine extends BaseBean<ProductionLineEntity> {

	/**
		 * 
		 */
	private static final long serialVersionUID = 6279146292161381326L;

	private List<WorkCenter> workCenterList = null;

	private ProductionLineEntity innerData;

	public ProductionLineEntity getInnerData() {
		return innerData;
	}

	public void setInnerData(ProductionLineEntity innerData) {
		this.innerData = innerData;
	}

	public List<WorkCenter> getWorkCenterList() {
		return workCenterList;
	}

	public void setWorkCenterList(List<WorkCenter> workCenterList) {
		this.workCenterList = workCenterList;
	}

	public boolean equals(Object obj) {

		boolean result = false;

		if (obj instanceof Route) {

			if (this.getInnerData().getId() <= 0) {
				result = (this == (ProductionLine) obj);
			} else {
				result = (this.getInnerData().getId() == ((ProductionLine) obj).getInnerData().getId());
			}
		}
		return result;
	}
}
